package com.prs.crm.domain.approval;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.prs.crm.domain.BaseEntity;
/**
 * @author 廖苹宏
 * @version 2012-5-2 15:28:22 申请单模板
 * 
 * */
@Entity
@Table(name="app_shenqingtype")
public class ShenQingType extends BaseEntity{
	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	private Integer id;
	private String name;        //模板名称
	@ManyToOne
	private JobType jobType;    //模板类型
	private String shiType;     //使用状态
	private String fujian;      //附件存放
	private String liucheng;    //流程状态
	private String houtai;      //后台代码
	private String shiyong;     //允许使用人员
	private String jiankong;    //监控人员
	private String weihu;       //维护人员
	private String xiugai;      //修改人
	private Integer upState;
	public Integer getUpState() {
		return upState;
	}
	public void setUpState(Integer upState) {
		this.upState = upState;
	}
	@ManyToOne(cascade={CascadeType.ALL})
	private AppNumberSet appNumberSet;   //自定义编号
	public String getXiugai() {
		return xiugai;
	}
	public void setXiugai(String xiugai) {
		this.xiugai = xiugai;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public JobType getJobType() {
		return jobType;
	}
	public void setJobType(JobType jobType) {
		this.jobType = jobType;
	}
	public String getShiType() {
		return shiType;
	}
	public void setShiType(String shiType) {
		this.shiType = shiType;
	}
	public String getFujian() {
		return fujian;
	}
	public void setFujian(String fujian) {
		this.fujian = fujian;
	}
	public String getLiucheng() {
		return liucheng;
	}
	public void setLiucheng(String liucheng) {
		this.liucheng = liucheng;
	}
	public String getHoutai() {
		return houtai;
	}
	public void setHoutai(String houtai) {
		this.houtai = houtai;
	}
	public String getShiyong() {
		return shiyong;
	}
	public void setShiyong(String shiyong) {
		this.shiyong = shiyong;
	}
	public String getJiankong() {
		return jiankong;
	}
	public void setJiankong(String jiankong) {
		this.jiankong = jiankong;
	}
	public String getWeihu() {
		return weihu;
	}
	public void setWeihu(String weihu) {
		this.weihu = weihu;
	}
	public AppNumberSet getAppNumberSet() {
		return appNumberSet;
	}
	public void setAppNumberSet(AppNumberSet appNumberSet) {
		this.appNumberSet = appNumberSet;
	}
	
	
}
